//
//  taobaoBridge.m
//  app
//
//  Created by yanjunliang on 2024/10/8.
//

#import "taobaoBridge.h"
#import "AppDelegate.h"

@implementation taobaoBridge

- (float)getStateHight {
    CGFloat height = 0.0;
    if (@available(iOS 13.0, *)) {
        CGFloat topHeight = [UIApplication sharedApplication].windows.firstObject.safeAreaInsets.top;
        height = topHeight ? topHeight : 20.0;
    }else {
        height = [[UIApplication sharedApplication] statusBarFrame].size.height;
    }
    return height;
}

@end
